import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'
import permission from './modules/permission'
import tagsView from './modules/tagsView'
import dictBai from './modules/dictBai'
import pharmacy_MZ from './modules/pharmacy_MZ'
import pharmacy_ZY from './modules/pharmacy_ZY'
// import store2 from './store'
import storage from './modules/storage'
import doctorWorkStation from './modules/doctorWorkStation'
import doctorInfo from './modules/doctorInfo'
import workstation from './modules/workstation'
import admin from './modules/admin'
import yibaoban from './modules/yibaoban'
Vue.use(Vuex)

const store = new Vuex.Store({
    modules: {
        app,
        settings,
        user,
        dictBai,
        permission,
        tagsView,
        pharmacy_MZ,
        pharmacy_ZY,
        storage,
        doctorInfo,
        doctorWorkStation,
        workstation,
        admin,
        yibaoban,
        // store2
    },
    //   state: {
    //     keepAlive: []
    // },
    // mutations: {
    //     setKeepAlive: (state, keepAlive) => {
    //         state.keepAlive = keepAlive;
    //     }
    // },
    // getters: {
    //     keepAlive: state => state.keepAlive
    // },
    getters,
})

export default store